package com.woniuxy.joylife.manager.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.woniuxy.common.validate.AddGroup;
import com.woniuxy.common.validate.UpdateGroup;
import lombok.Data;

import javax.validation.constraints.Future;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * 活动信息
 * 
 * @author renxiang
 * @email 981405195@qq.com
 * @date 2020-05-13 02:47:54
 */
@Data
@TableName("manager_activity")
public class ActivityEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 活动编号
	 */
	@TableId
	private String actId;
	/**
	 * 活动名称
	 */
	@NotBlank(groups = {AddGroup.class,UpdateGroup.class})
	private String name;
	/**
	 * 活动地点
	 */
	@NotBlank(groups = {AddGroup.class,UpdateGroup.class})
	private String address;
	/**
	 * 更新时间
	 */
	private Date updatetime;
	/**
	 * 活动时间,必须是未来时间
	 */
	@NotNull(groups = {AddGroup.class,UpdateGroup.class})
	@Future(groups = {AddGroup.class,UpdateGroup.class})
	private Date activitytime;
	/**
	 * 状态
	 */
	@TableLogic
	private Integer state;
	/**
	 * 创建时间
	 */
	private Date createtime;

}
